package com.dubbo.controller;

import com.dubbo.service1.Test1Service1;
import com.dubbo.service2.Test1Service2;
import com.dubbo.service3.Test1Service3;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * controller
 * @author hwy
 *
 */
@Controller
public class MyController {
	


	/*@Autowired
	private Test1Service1 test1Service1;

	@Autowired
	private Test1Service2 test1Service2;*/

	@Autowired
	private Test1Service3 test1Service3;

	/*@Autowired
	private Test1Service3 test1Service3;*/

	/*@RequestMapping(value = "/test")
	@ResponseBody
	public String testSay(){

		return test1Service1.test1Service1_1();
	}

	@RequestMapping(value = "/test1")
	@ResponseBody
	public String test1(){

		return test1Service1.test1Service1_2();
	}


	@RequestMapping(value = "/test2")
	@ResponseBody
	public String test2(){
		return test1Service2.test1Service2_1();
	}
*/

	@RequestMapping(value = "/test3")
	@ResponseBody
	public String test3(){
		return test1Service3.test1Service3_1();
	}



/*
	@RequestMapping(value = "/test4")
	@ResponseBody
	public String tes12_12(){
		return test1Service1.test11_21();
	}


*/

}
